import path from 'path';
import rullup from './lib/rollup.js';
import { fileURLToPath } from "node:url";
import { dirname } from "node:path"
import { createRequire } from 'module';
const require = createRequire(import.meta.url);
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

let entry = path.resolve(__dirname,'./lib/rollup.js');
// let entry = path.resolve(__dirname,'./src/test.js');
let outry = path.resolve(__dirname,'./dist/bundle2.js');
rullup(entry,outry)
// rullup(entry,path.join(__dirname,"./dist/bundle2.js"))
debugger
// console.log(entry.toString(),outry.toString());
// rollup('e:\web\learn\rollup\src\main.js','e:\web\learn\rollup\dist\main.js')